package com.fitso.wicket.panel.user;

import java.io.Serializable;

import org.apache.log4j.Logger;
import org.apache.wicket.markup.html.WebPage;
import org.apache.wicket.markup.html.link.BookmarkablePageLink;
import org.apache.wicket.markup.html.panel.Panel;

import com.fitso.wicket.page.user.NewUser;

/**
 * Represents a SignIn Panel that can be placed on any {@link WebPage}, which is
 * handy because it can be a module on a page or a specific pop-up or whatever
 * your mind can dream up.
 * 
 * @author timothystorm
 */
public class UserSignInPanel extends Panel implements Serializable {
	// Only change on breaking changes, i.e., removing fields
	private static final long serialVersionUID = 1L;

	static final Logger logger = Logger.getLogger(UserSignInPanel.class);

	public UserSignInPanel(final String id) {
		super(id);

		logger.trace("building signInPanel");
		add(new UserSignInForm("UserSignInForm"));
		add(new BookmarkablePageLink<NewUser>("NewUser", NewUser.class));
	}
}
